<template>
  <div class="card">
    <div class="card-header">
      <img src="@/assets/images/title-point.png" class="point" alt="">
      <div class="header-title">{{title}}</div>
      <div class="line"></div>
      <img src="@/assets/images/title-arrow.png" class="arrow">
    </div>
    <div class="card-body">
      <slot></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'Card',
  props:{
    title:{
      type:String,
      required:true
    }
  }
}
</script>

<style scoped lang="scss">
.card{
  width: 100%;
  height: 100%;
  background: rgba(4, 16, 34, 0.3);
  backdrop-filter: blur(10px);
  padding: 10px;
  .card-header{
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    .point{
      width: 25px;
      height: 25px;
      border: none;
    }
    .line{
      flex-grow: 1;
      height: 1px;
      margin-right: 5px;
      background: rgba(10, 167, 255, 0.3);
    }
    .arrow{
      height: 13px;
    }
    .header-title{
      font-family: 冷酷体;
      color: $fontColorMain;
      font-size: 18px;
      font-weight: bold;
      margin:0 10px;
    }
  }
  .card-body{
    width: 100%;
    height: calc(100% - 35px);
  }
}
</style>
